/* Layout */
import Layout from '../views/layout/Layout'

const _import = require('./_import_' + process.env.NODE_ENV)

const virtualRoutes = [
  {
    path: '/virtual',
    component: Layout,
    // meta: { roles: [] }, // you can set roles in root nav
    redirect: 'noredirect',
    name: 'virtual',
    meta: {
      title: '虚拟数据',
      icon: 'component',
      roles: []
    },
    children: [
      {
        path: 'virtual-account',
        name: 'virtual-account',
        component: _import('virtual/virtualAccount'),
        meta: {
          title: '虚拟用户',
          roles: ['add-agency','add-member','edit']
        }
      }
    ]
  }
];
export default virtualRoutes
